package week9.q1;

public class Fish extends Animal{
    private int weight;


    public Fish(int age, int weight) {
        super(age);
        this.weight = weight;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    @Override
    public String info() {
        return "我是一只"+weight+"斤重的鱼";
    }
}
